package com.mongodb.mongodbboot.property;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author jmj
 * @since 2025/4/28 13:42
 */
@Data
@Component
@ConfigurationProperties(prefix = "spring.data.mongodb")
public class MongoProperty {
    /**
     * 历史mongo连接
     */
    private String uri;

    /**
     * 缓冲库
     */
    private String cacheUrl;
    /**
     * 分库分表连接
     */
    private List<MongoShard> shardingLinks;
}
